﻿@model IEnumerable<string>
@using SAKS.Helpers;

@{
    ViewBag.Title = "所有用户";
}

@{
    string[] Roles = ViewBag.Roles as String[];
    int rowNum = 0;
}


<h2>所有用户</h2>

<table>
    <tr>
        <th></th>
        <th>
            用户
        </th>

        <th></th>
    </tr>

    @foreach (var item in Model) {
        rowNum++;
        <tr>
            <td>             
                @rowNum
            </td>
            <td>
                <a href="#" class="username">@item</a> 
            </td>

            <td>
                @Html.ActionLink("角色", "ChangeUserRole", new { user = item})
            </td>
            @*@Html.RolesChecked(item.Roles, Roles)*@
        </tr>
    }

</table>
<div id="linkbar">
<p>
 @Html.Partial("_LinkBar")
</p>
</div>


